]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lookingGlass: Ensure that we don't divide by zero
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 18 Jul 2013 17:14:48 +0000 (13:14 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 4 Aug 2013 09:47:50 +0000 (05:47 -0400)
Cap the lower limit of the looking glass tween at 0.5.

https://bugzilla.gnome.org/show_bug.cgi?id=704448

js/ui/lookingGlass.js

index 98e6addde18ad8848dcecf8cf6ef63e85073cd9d..30493124f3080730df425a1f35d68161b0939a63 100644 (file)
@@ -1150,7 +1150,7 @@ const LookingGlass = new Lang.Class({
 
         Main.popModal(this._entry);
 
-        Tweener.addTween(this.actor, { time: 0.5 / St.get_slow_down_factor(),
+        Tweener.addTween(this.actor, { time: Math.max(0.5 / St.get_slow_down_factor(), 0.5),
                                        transition: 'easeOutQuad',
                                        y: this._hiddenY,
                                        onComplete: Lang.bind(this, function () {